<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "{{%pre_common_team}}".
 *
 * @property string $Team_name
 * @property integer $Member_num
 * @property string $Setup_time
 * @property integer $sid
 * @property integer $status
 */

/*
**Team :
**Coding by 张今灵 1511267 170706
**This is the function of team information 
*/

class PreCommonTeam extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%pre_common_team}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['Team_name', 'Setup_time', 'sid'], 'required'],
            [['Member_num', 'sid', 'status'], 'integer'],
            [['Setup_time'], 'safe'],
            [['Team_name'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'Team_name' => '团队名称',
            'Member_num' => '成员数量',
            'Setup_time' => '成立时间',
            'sid' => '队长学号',
            'status' => '状态',
        ];
    }
}
